#pragma once

namespace host {
    typedef bool(*TaskCB)(void* priv);

    class OSThread
    {
    public:
        OSThread();
        virtual ~OSThread();


        void Load(TaskCB cb, void* priv);
        void Trem();
        void Join();

        bool    m_bRunning;
        TaskCB  callback;
        void*   m_pUser;

    private:
        void*   m_hThread;
    };


};
